package com.haiyou.data.sdk.account.log;

import com.haiyou.common.jdbc.DbType;
import com.haiyou.data.common.persister.mysql.annotation.*;
import com.haiyou.data.common.persister.mysql.persister.delay.DelayEntity;
import lombok.*;


@ToString
@Setter
@Getter
@Database(alias = DbType.LOG_DB)
@Table(name = "t_log_advert", rollPolicy = Table.RollPolicy.EVERY_DAY, comment = @Comment("广告日志"), sqlBatchNum = 400, columnDropable = true)
public class AdvertLog extends DelayEntity<Long> {

    @Id(autoIncr = true)
    private Long id;

    @Comment("玩家id")
    private String playerId;
    /**
     * 真正的广告唯一id
     */
    @Comment("广告id")
    private String advertId;

    /**
     * 类型
     */
    @Comment("广告id")
    private int adId;

    @Comment("服务器id")
    private int serverId;

    @Comment("是否观看完成")
    private boolean status;
}
